]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Fix error message returned from Eval
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 13 Nov 2013 18:20:08 +0000 (13:20 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 13 Nov 2013 20:15:03 +0000 (15:15 -0500)
Annoyingly, `message` on errors are non-enumerable, which mean that
JSON.stringify on the error will produce `{}`. Just cast it to a string
for now.

js/ui/shellDBus.js

index 609b1c168681ee96d168e1a3958fe71ce2765d3b..79ff46cba29efdf6d161439326b41e957e1ad4ef 100644 (file)
@@ -119,7 +119,7 @@ const GnomeShell = new Lang.Class({
                 returnValue = '';
             success = true;
         } catch (e) {
-            returnValue = JSON.stringify(e);
+            returnValue = '' + e;
             success = false;
         }
         return [success, returnValue];